package com.Ajava1704.for设计模式.for观察者模式;

/**
 * @类名: com.Ajava1704.for设计模式.for观察者模式
 * @作者: lgt
 * @创建时间: 2020-02-15 17:07
 * @描述:
 **/
public class ForTest010 {
    public static void main(String[] args) {
        ForBeiGuanChaZhe forBeiGuanChaZhe = new ForBeiGuanChaZhe();
        //注册观察者
        forBeiGuanChaZhe.register(new ForGuanChaZhe());
        forBeiGuanChaZhe.register(new ForGuanChaZhe2());

        forBeiGuanChaZhe.test();
    }
}
